home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1682 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  723 b   |  26 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even21 == 0)
  7.          {
  8.             _root.sfx.gotoAndStop(3);
  9.             _root.even21 = 1;
  10.             _root.next_dis1 = 2;
  11.             _root.next_txt1 = "Well see what increasing the pressure a little does.";
  12.          }
  13.          else
  14.          {
  15.             _root.next_dis1 = 2;
  16.             _root.next_txt1 = "I don\'t need to turn it again.";
  17.          }
  18.       }
  19.       if(_root.micon._currentframe == 2)
  20.       {
  21.          _root.next_dis1 = 2;
  22.          _root.next_txt1 = "I think this valve controls the water pressure in the right wing.";
  23.       }
  24.    }
  25. }
  26.